package Meituan;

/**
 * @author: leiwenkang
 * @date: 2020/6/3
 * @time: 12:16
 */
public class 整数小数相乘向上取整 {
    public static void main(String[] args) {
        System.out.println(getResult(6, 0.33));
    }

    public static int getResult(int num, double percent) {
        return (int)Math.ceil(num * percent);
    }
}
